function ajaxGetTree( p ) {

    $.ajax( { url: makeAjaxURL( { 'argList': [ 'getTree' ] } ),
                  type: "POST",
                  data: { treeId: p.treeId, type: p.type },
                  success: p.success } );
}

function ajaxDeleteSourceTree( p ) {

    $.ajax( { url: makeAjaxURL( { argList: [ 'deleteTree' ] } ),
              type: "POST",
              data: { treeId: p.data.treeId },
              success: handleDeleteSourceTreeResponse } );

}

function ajaxRetrieveAllTreeInfo() {
    
    $.ajax( { url: makeAjaxURL( { argList: [ 'retrieveAllTreeInfo' ] } ),
              type: "POST",
              data: { },
              success: handleAllTreeInfoResponse } );
}





/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////




function ajaxDeleteTree( p ) {

}

function ajaxDeleteSavedClade( p ) {
    
    $.ajax( { url: '/' + globals.applicationName + '/default/deleteSavedClade',
              type: "POST",
              data: { savedCladeId: p.data.savedCladeId },
              success: handleDeleteSavedCladeResponse } );
}







function ajaxGraftOnto() { }
